package cn.itcast.dao;

import cn.itast.domain.SysLog;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface ISysLogDao {

    @Insert("INSERT INTO sysLog (visitTime, username, ip, url, executionTime, method) VALUES (#{visitTime},#{username},#{ip},#{url},#{executionTime},#{method})")
    void save(SysLog sysLog);

    @Select("select * from SYSLOG")
    List<SysLog> findAll();
}
